
EXAMPLE 		= sample_static_app
COMPILE_OPTS 	= -Wall -Wundef -Wsign-compare -Wno-missing-braces -Wstrict-prototypes -Werror
INCLUDES 		= -I.
SRC = \
	module.c \
	main.c \

OBJ = $(SRC:.c=.o)

all: $(EXAMPLE)

$(EXAMPLE):$(OBJ)
	@echo  Creating $@...
	@$(CC) $(INCLUDES) $(COMPILE_OPTS)  -o $@ $(OBJ)

%.o:%.c
	@echo Compiling $<
	@$(CC) $(INCLUDES) $(COMPILE_OPTS) -c $< -o $@

clean:
	@rm -f $(EXAMPLE) $(OBJ) *.sym *.o *.a *.so*

echo_var:
	@echo $(INCLUDES) $(COMPILE_OPTS)
